W13. Linear Differential Systems
1. Theory
1.1 Ordinary Differential Equations and Dynamic Systems
An ordinary differential equation (ODE) is an equation involving an unknown function of a single independent variable together with one or more of its derivatives. If the unknown is
The order of an ODE is the highest derivative appearing in it. The equation is linear if the unknown function and its derivatives appear only to the first power, are not multiplied together, and are not placed inside nonlinear functions such as
ODEs are the mathematical language of change. Population growth, cooling, radioactive decay, mechanical vibration, electrical circuits, and chemical reactions are all modeled by differential equations. In each case, the rate of change of the current state determines the future evolution of the system.
A continuous-time dynamic system has the form
where
1.2 Linear Systems and Matrix Form
Many important models involve several dependent variables, so we study systems of first-order ODEs:
In compact form this becomes
where
This matrix formulation is powerful because it lets us use the entire machinery of linear algebra: eigenvalues, eigenvectors, diagonalization, matrix exponentials, and invariant subspaces. The long-term behavior of the system is encoded in the spectrum of
1.3 Solving by Eigenvalues and Diagonalization
To solve
we look for solutions of the form
where
Thus solving the ODE reduces to solving the eigenvalue problem for
If
Equivalently, if
where
This system is completely decoupled:
so each component is solved by a scalar exponential:
Diagonalization therefore turns a coupled linear system into independent first-order ODEs.
1.4 Matrix Exponential
The most general and elegant solution formula uses the matrix exponential:
For every square matrix
is
The matrix exponential behaves like the scalar exponential in all the ways we need:
In particular,
If
and since
This gives a practical way to compute
1.5 Higher-Order ODEs as First-Order Systems
A higher-order linear ODE can always be rewritten as a first-order system. For a second-order equation
define
Then
or in matrix form
The same idea works for any order. For
set
Then
So higher-order equations can be solved with the same matrix methods developed for first-order systems.
1.6 Linearization Around an Equilibrium
Many physical systems are nonlinear:
An equilibrium point is a constant state
Near an equilibrium, a nonlinear system can be approximated by a linear one using the first-order Taylor expansion. If
where
If an input
with
This is why linear systems are so important: they describe the local behavior of nonlinear systems near equilibrium.
1.7 Stability and the Real Parts of Eigenvalues
For the linear system
the behavior of solutions as
Its magnitude is
Therefore, only the real part of the eigenvalue controls growth or decay:
- If
for all , then every mode decays exponentially and the equilibrium is asymptotically stable. - If at least one eigenvalue has
, then some mode grows exponentially and the equilibrium is unstable. - If all eigenvalues satisfy
and the eigenvalues on the imaginary axis are simple (equivalently, no growing Jordan blocks appear), then solutions remain bounded and the equilibrium is neutrally stable.
Typical geometric behaviors in the phase plane are:
- Sink / stable node: both eigenvalues real and negative.
- Source / unstable node: both eigenvalues real and positive.
- Saddle: eigenvalues of opposite signs.
- Spiral sink: complex conjugate eigenvalues with negative real part.
- Spiral source: complex conjugate eigenvalues with positive real part.
- Center: purely imaginary eigenvalues in the simple
case.
1.8 The Trace-Determinant Test
For
the characteristic polynomial is
where
For a
The discriminant
distinguishes real eigenvalues from complex ones:
: two distinct real eigenvalues. : repeated real eigenvalue. : complex conjugate pair.
Combined with the signs of
2. Definitions
- Ordinary differential equation (ODE): An equation involving an unknown function of one independent variable and its derivatives.
- Order of an ODE: The highest derivative appearing in the equation.
- Linear ODE: An ODE in which the unknown function and its derivatives appear linearly, with coefficients depending only on the independent variable.
- Dynamic system: A rule describing how a state vector changes over time, typically written as
. - State vector: The vector of variables that completely describes the system at a given time.
- Homogeneous linear system: A system of the form
with no forcing term. - Equilibrium point: A constant state
such that . - Diagonalizable matrix: A matrix
for which there exists an invertible matrix and diagonal matrix such that . - Matrix exponential: The matrix-valued series
. - Linearization: The first-order Taylor approximation of a nonlinear system near an equilibrium or operating point.
- Jacobian matrix: The matrix of first partial derivatives of a vector-valued function.
- Asymptotic stability: Every solution starting near the equilibrium converges to it as
. - Neutral (marginal) stability: Nearby solutions remain bounded for all future time but do not necessarily converge to the equilibrium.
- Unstable equilibrium: An equilibrium for which some nearby solutions move away from it.
- Trace: For a square matrix
, the sum of its diagonal entries, denoted . - Phase plane: The plane whose coordinates are the state variables in a two-dimensional dynamical system; trajectories in this plane visualize the system’s behavior.
3. Formulas
- Scalar exponential-growth/decay model:
. - Linear system in matrix form:
. - Eigenvector trial solution:
with . - General solution for diagonalizable
: . - Diagonalization:
. - Decoupled system after change of variables:
gives . - Matrix exponential:
. - Solution of the initial value problem:
. - Matrix exponential of a diagonalizable matrix:
. - Matrix exponential of a diagonal matrix: If
, then . - Second-order to first-order conversion:
. - Linearization near equilibrium:
when and . - Complex exponential magnitude: If
, then . - Characteristic polynomial of a
matrix: . - Trace and determinant: For
, and . asymptotic stability test: and .- Discriminant for phase-plane classification:
.
4. Practice
4.1. Solve a System with Initial Conditions (Lab 10, Task 1)
Solve
Click to see the solution
Key Concept: Once eigenvalues and eigenvectors are found, the initial condition determines the coefficients uniquely.
Write the system as
Let
The characteristic polynomial is
Thus
so
For
so
For
so
Therefore
Use the initial condition:
This gives
From the second equation,
Hence
and
Answer:
4.2. Convert a Damped Second-Order ODE and Decide Stability (Lab 10, Task 2)
Convert
to a first-order system and determine its stability.
Click to see the solution
Key Concept: Converting to first-order gives a matrix whose eigenvalues immediately reveal stability.
Let
Then
In matrix form,
The characteristic polynomial is
Solve:
Both eigenvalues have real part
Answer: The associated first-order system is
4.3. Find All Parameters That Make a System Asymptotically Stable (Lab 10, Task 3)
Find all real values of
is asymptotically stable.
Click to see the solution
Key Concept: For a
Let
Compute the trace:
Compute the determinant:
Since both conditions
hold for every real
If desired, we can also see this from the characteristic equation:
Its roots always have negative real part because the sum is
Answer: The system is asymptotically stable for all real values of
4.4. Classify ODEs by Order and Linearity (Lecture 10, Example 1)
Classify the following differential equations by order and determine whether each one is linear or nonlinear:
(a)
(b)
(c)
(d)
Click to see the solution
Key Concept: The order is determined by the highest derivative. Linearity fails whenever the unknown or its derivatives appear multiplied together, raised to powers other than 1, or inside nonlinear functions.
(1)
- Highest derivative:
, so the equation is second order. - The derivative
appears squared inside a square root, so the equation is nonlinear.
(2)
- Highest derivative:
, so the equation is first order. and appear only linearly, and the coefficients depend only on , so the equation is linear.
(3)
- Highest derivative:
, so the equation is third order. - All appearances of
and its derivatives are linear, so the equation is linear.
(4)
- Highest derivative:
, so the equation is first order. - The term
makes it nonlinear.
Answer: (1) second-order nonlinear, (2) first-order linear, (3) third-order linear, (4) first-order nonlinear.
4.5. Solve the Simplest Linear ODE and Interpret the Parameter (Lecture 10, Example 2)
Solve the initial value problem
and describe the behavior for
Click to see the solution
Key Concept: This is the basic exponential model. The sign of
Separate variables:
Integrate:
Exponentiating gives
Use the initial condition:
so
Behavior:
- If
, then grows and the solution shows exponential growth. - If
, then is constant. - If
, then as , so the solution shows exponential decay.
This same structure appears in population growth, cooling, and radioactive decay models.
Answer:
4.6. Solve a Linear System by Eigenvalues and Eigenvectors (Lecture 10, Example 3)
Find the general solution of
Click to see the solution
Key Concept: For
Write the system in matrix form:
Compute the characteristic polynomial:
So
Hence the eigenvalues are
For
which gives the relation
For
which gives
Therefore the general solution is
In component form,
Answer:
4.7. Solve the Same System by Diagonalization and Matrix Exponential (Lecture 10, Example 4)
For
use diagonalization to compute
Click to see the solution
Key Concept: If
From the previous example, we may choose
Compute the inverse:
Then
so
Therefore
Multiplying out gives
This is the same family of solutions as in Example 4.3, but now the constants are written explicitly in terms of the initial data.
Answer:
4.8. Compute the Matrix Exponential of a Diagonal Matrix (Lecture 10, Example 5)
Find
Click to see the solution
Key Concept: Powers of a diagonal matrix are computed entrywise, so the matrix exponential is also diagonal with scalar exponentials on the diagonal.
First compute powers of
Substitute into the series:
Each sum is an ordinary exponential:
More generally, if
Answer:
4.9. Solve an Upper-Triangular System with an Initial Condition (Lecture 10, Example 6)
Solve
Click to see the solution
Key Concept: A triangular matrix reveals its eigenvalues immediately. Once the eigenvectors are found, the initial condition determines the constants in the eigenbasis expansion.
Let
Because
For
so
For
so
Hence
Use the initial condition:
This gives
so
Therefore
Answer:
4.10. Convert a Second-Order ODE to a First-Order System and Solve It (Lecture 10, Example 7)
Convert
to a first-order system and solve it.
Click to see the solution
Key Concept: Introduce new variables for successive derivatives. The resulting matrix system can then be solved using eigenvalues and eigenvectors.
Set
Then
So the first-order system is
In matrix form,
Let
Compute the characteristic polynomial:
Thus
so the eigenvalues are
For
so
For
so
Hence
Since
Answer: First-order system as above, and
4.11. Convert a Fourth-Order ODE to a First-Order System (Lecture 10, Example 8)
Rewrite the fourth-order ODE
as a first-order system.
Click to see the solution
Key Concept: For an
Introduce the variables
Then
From the ODE,
so
Therefore,
In matrix form,
This system can then be analyzed by eigenvalues, diagonalization, or the matrix exponential.
Answer: The companion-form system is the one displayed above.
4.12. Use Eigenvalues to Classify Stability in Several Systems (Lecture 10, Example 9)
Determine the stability type of each system:
(a)
(b)
(c)
(d)
(e)
Click to see the solution
Key Concept: Stability depends on the real parts of the eigenvalues. Negative real parts give decay, positive real parts give growth, and purely imaginary eigenvalues lead to bounded oscillation in the simple case.
(1)
This matrix is upper triangular, so the eigenvalues are
Both are negative, so the system is asymptotically stable.
(2)
Its characteristic polynomial is
so the eigenvalues are
One eigenvalue is positive, so the system is unstable.
(3)
The characteristic polynomial is
so
The real part is
(4)
The characteristic equation is
so
The real part is zero, so the motion is oscillatory and bounded. This system is neutrally stable.
(5)
The characteristic equation is
so
The real part is positive, so the solution grows like
Answer: (1) asymptotically stable, (2) unstable, (3) asymptotically stable, (4) neutrally stable, (5) unstable.
4.13. Use the Trace-Determinant Test for a System (Lecture 10, Example 10)
Consider
Explain why the conditions
guarantee asymptotic stability.
Click to see the solution
Key Concept: For a
The characteristic polynomial is
So if the eigenvalues are
and
Assume
There are two cases:
Case 1: The eigenvalues are real.
If their product is positive, they have the same sign. Since their sum is negative, both must be negative.
Case 2: The eigenvalues are complex conjugates.
Then
and their sum is
So in either case, both eigenvalues have negative real parts. Therefore every mode decays exponentially and the system is asymptotically stable.
Answer: The conditions